package cn.liufuwen.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.dubbo.config.annotation.Reference;

import cn.liufuwen.entity.GoodsDTO;
import cn.liufuwen.entity.UserDTO;
import cn.liufuwen.service.GoodsService;
import cn.liufuwen.service.UserService;
import lombok.extern.java.Log;
@Log
@RestController
@RequestMapping("/goods")
public class GoodsController {
	@Reference(version = "${demo.service.version}")
	GoodsService goodsService;
	@RequestMapping("/listgoods")
    public List<GoodsDTO> listgoods(ModelAndView modelAndView) {
		List<GoodsDTO> listgoods = goodsService.listgoods();
		
		return listgoods;
	}
}
